var root=ui("$");
var qqmath = require("util/qqmath");
var openHelper = require("helper/open");
var pPrice = ui("pPrice");
var do_ALayout_4 = ui("do_ALayout_4");
//设置数据绑定的映射关系
root.setMapping({
	"do_ALayout_4.tag":"id",
	"pFirstImg.source":"firstImg",
	"pName.text":"name",
	"pPrice.text" :"price",
	"pPrice.tag":"unit",
});
root.on("dataRefreshed", function(){
	pPrice.text = qqmath.getDight(pPrice.text,2) + "元/" + pPrice.tag;
});
do_ALayout_4.on("touch", function(data) {
	openHelper.open("source://view/mall/product/main.ui",{"id":do_ALayout_4.tag});
});